← Back to issue list

Misleading error message about lxd.migrate

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1928046
Type
issue
State
open
Author
~mardy
Labels
craft-341
Created
2021-05-11 06:33:51.012807+00:00
Updated
2021-07-08 12:29:47.007816+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Running `snapcraft --use-lxd` on my Ubuntu 20.04 system led to this error:     The 'LXD' provider does not support having the 'lxd' or 'lxd-client' deb packages installed. To completely migrate to the LXD snap run 'lxd.migrate' and try again. Even though I knew my lxd was already coming from the snap version, I ran `lxd.migrate` anyway, and it failed:     => Connecting to source server     error: Unable to connect to the source LXD: Get "http://unix.socket/1.0": dial unix /var/lib/lxd/unix.socket: connect: no such file or directory Running out of ideas, I removed the transitional deb package for lxd, and that indeed solved the issue. But maybe snapcraft should either make the message more clear, or the lxd.migrate tool (or even snapcraft itself) should be made smarter and just check if the lxd snap is installed, without caring about the deb version.

Evaluation history

No evaluation history available.